package com.ljz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`order`")
@ApiModel("订单信息")
public class Order {
   @TableId(value = "order_id",type = IdType.AUTO)
   private Long order_id;
   private Long shop_id;
   private Long user_id;
   private Integer delivery_type;
   private String shop_name;
   private Long total;
   private Integer status;
   private Integer all_count;
   private Date pay_time;
   private Date delivery_time;
   private Date finally_time;
   private Date settled_time;
   private Date cancel_time;
   private Integer is_payed;
   private Integer close_type;
   private Integer delete_status;
   private Integer version;
   private Long order_addr_id;
   private String order_code;
   @TableField(exist = false)
   private OrderAddr orderAddr;
   @TableField(exist = false)
   private List<OrderItem> orderItems;
}
